package com.example.qgorderconsoumer.service.impl;

import com.example.qgorderconsoumer.feign.OrderFeign;
import com.example.qgorderconsoumer.service.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
//@Transactional
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderFeign orderFeign;

    @Override
    public List<Map> getOrdersByUid(int userId) {
        return orderFeign.getOrdersByUid( userId );
    }

    @Override
    public Map getById(String id) {
        return orderFeign.getById( id );
    }
}
